package com.freesky.biz.activity.domain;

import cn.hutool.core.annotation.Alias;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TCouponBill implements java.io.Serializable{

    @ExcelIgnore
    private String id;

    @ExcelProperty("渠道")
    private String deptName;

    @ExcelProperty("项目名称")
    private String projectName;

    //批次id
    @ExcelProperty("批次号")
    private String stockId;

    @ExcelProperty("批次名称")
    private String stockName;

    //优惠id
    @ExcelProperty("优惠券ID")
    private String couponId;

    //优惠类型
    @ExcelProperty("优惠类型")
    private String type;

    //优惠金额（元）
    @ExcelProperty("优惠金额（元）")
    private Double amt;

    //订单总金额（元）
    @ExcelProperty("订单总金额（元）")
    private Double orderMoney;

    //交易类型
    @ExcelProperty("交易类型")
    private String tradeType;

    //支付单号
    @ExcelProperty("支付单号")
    private String tradeNo;

    //消耗时间
    @ExcelProperty("消耗时间")
    private String consumeTime;

    //消耗商户号
    @ExcelProperty("消耗商户号")
    private String consumeMchid;

    //设备号
    @ExcelProperty("设备号")
    private String deviceNo;

    //银行流水号
    @ExcelProperty("银行流水号")
    private String bankNo;

    //单品信息
    @ExcelProperty("产品信息")
    private String productInfo;

    //消耗门店编码(微信支付)
    @ExcelProperty("消耗门店编码(微信支付)")
    private String cosumeCode1;

    //消耗门店编码(商家自有)
    @ExcelProperty("消耗门店编码(商家自有)")
    private String consumeCode2;

    @ExcelIgnore
    private String deptId;

    //创建时间
    @ExcelIgnore
    private String createTime;

    //创建时间
    @ExcelIgnore
    private String updateTime;

    @ExcelIgnore
    private Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
